this.BX=this.BX||{};this.BX.Landing=this.BX.Landing||{};this.BX.Landing.UI=this.BX.Landing.UI||{};(function(t,e,a){"use strict";var i;var n=function(t){babelHelpers.inherits(e,t);function e(t){var i;babelHelpers.classCallCheck(this,e);i=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).call(this,t));a.Dom.addClass(i.getLayout(),"landing-ui-card-headercard");if(t.bottomMargin===false){i.setBottomMargin(t.bottomMargin)}if(a.Type.isNumber(t.level)){a.Dom.addClass(i.getLayout(),"landing-ui-card-headercard-".concat(t.level))}if(a.Type.isStringFilled(t.description)){i.setDescription(t.description)}return i}babelHelpers.createClass(e,[{key:"getDescriptionLayout",value:function t(){return this.cache.remember("descriptionLayout",function(){return a.Tag.render(i||(i=babelHelpers.taggedTemplateLiteral(['\n\t\t\t\t<span class="landing-ui-card-headercard-description"></span>\n\t\t\t'])))})}},{key:"setDescription",value:function t(e){var i=this.getDescriptionLayout();if(!this.body.contains(i)){a.Dom.append(i,this.body)}i.textContent=e}},{key:"setBottomMargin",value:function t(e){if(e===true){a.Dom.removeClass(this.getLayout(),"landing-ui-card-headercard-without-bottom-margin")}else{a.Dom.addClass(this.getLayout(),"landing-ui-card-headercard-without-bottom-margin")}}}]);return e}(e.BaseCard);t.HeaderCard=n})(this.BX.Landing.UI.Card=this.BX.Landing.UI.Card||{},BX.Landing.UI.Card,BX);
//# sourceMappingURL=headercard.bundle.map.js